from django.db import models
from django.contrib.auth.models import User
# from django.contrib.auth.models import User
# Create your models here.


class SystemUser(models.Model):
    
    user = models.OneToOneField(User, on_delete=models.CASCADE)
    department = models.CharField(max_length=100, verbose_name='部门')


    def __str__(self) -> str:
        return self.username
    

    class Meta:

        verbose_name = "系统用户"



